import Vue from 'vue'
import FastClick from 'fastclick'
import router from './router'
import App from './App'
import store from './store'
import './plugin/vux'
import './http'
import api from'./api'
import './assets/css/iconfont.css'


FastClick.attach(document.body)

Vue.config.productionTip = false
Vue.prototype.$api = api;
Vue.prototype.$getBase = function () {
  const data = {};
  data.jyxm = this.$store.state.carInfo.jyxm;
  data.hphm = this.$store.state.carInfo.hphm;
  data.jylsh = this.$store.state.carInfo.jylsh;
  data.jyjgbh = this.$store.state.carInfo.jyjgbh;
  data.jcxdh = this.$store.state.carInfo.jcxdh;
  data.jycs = this.$store.state.carInfo.jycs;
  data.hpzl = this.$store.state.carInfo.hpzl;
  data.clsbdh = this.$store.state.carInfo.clsbdh;
  return data;
};
function ResponseCode() {}

ResponseCode.ok = 200;
ResponseCode.prototype.isOk = function (code) {
  return ResponseCode.ok === code || ResponseCode.ok + '' === code;
};
Vue.prototype.$code = ResponseCode
/* eslint-disable no-new */
const vm = new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app-box')
